package com.niiwoo.civet.mobile.vo.response.bill;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by DELL on 2018/10/29.
 */
@Getter
@Setter
@ApiModel("分页查询用户账单列表返回对象[按项目]")
public class PageUserBillForProjectResponse {

    @ApiModelProperty("项目id")
    private Long projectId;

    @ApiModelProperty("账单标题")
    private String billTitle;

    @ApiModelProperty("账单头像")
    private String billHeadImgUrl;

    @ApiModelProperty("最后一条账单的创建时间")
    private Date lastCreateTime;

    @ApiModelProperty("汇总金额totalAmountItem集合")
    private List<TotalAmountItem> totalAmountItems;

    @ApiModelProperty("账单数据billData集合")
    private List<BillData> billDatas;







    @Getter
    @Setter
    @ApiModel("汇总金额totalAmountItem")
    public class TotalAmountItem{
        @ApiModelProperty("金额类型名称")
        private String amountTypeName;

        @ApiModelProperty("金额")
        private BigDecimal amount;
    }





    @Getter
    @Setter
    @ApiModel("账单数据BillDataRecord")
    public class BillData{
        @ApiModelProperty("账单id")
        private Long billId;

        @ApiModelProperty("账单标题")
        private String billTitle;

        @ApiModelProperty("账单金额")
        private BigDecimal amount;

        @ApiModelProperty("账单状态")
        private Byte status;

        @ApiModelProperty("账单创建时间")
        private Date createTime;
    }

}


